<?php
include("../inc/conn.inc");
include("../inc/page.php");
$hover=4;
$url="primarylist.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=20;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>企业编号<?=$_GET[fromid]?>-<?=$_GET[toid]?>，公司库，公司库-三帝贸易网</title>
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/link.css" rel="stylesheet" type="text/css" />
<link href="/css/head_1.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
<link href="/Company/css/list.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("../inc/head_top.php")?>
<?php include("../inc/menu_2.php")?>
<div id="mian" class="topside6 side">
<div class="title">您所在的位置：<a href="/">首页</a> >> <a href="/company/primary.php">企业信息索引</a> >> 企业编号<?=$_GET[fromid]?>-<?=$_GET[toid]?></div>
<div class="onl"></div>
</div>

<div class="w960 topside20 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>

<div id="mian" class="topside6">
<div class="leftmain">
<div>
<DIV class="zzb3 side">
<DIV class=zzb2-1><a href="#"></a></DIV>
<DIV class=zzb3-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;企业信息</DIV>
<DIV class=zzb3-2></DIV>
<DIV class=second3-4>
<DIV style="PADDING-LEFT: 30px; FLOAT: left; MARGIN-LEFT: 0px; WIDTH: 85px;	margin-top: 6px;">工商注册年份</DIV>
<DIV style="PADDING-LEFT: 30px; FLOAT: left; MARGIN-LEFT: 0px; WIDTH: 50px;	margin-top: 6px;">营业额</DIV>
<DIV style="PADDING-LEFT: 30px; FLOAT: left; MARGIN-LEFT: 0px; WIDTH: 50px;	margin-top: 6px;">会员类型</DIV>
<DIV style="PADDING-LEFT: 30px; FLOAT: left; MARGIN-LEFT: 0px; WIDTH: 50px;	margin-top: 6px;">联系我们</DIV>
</DIV>
</DIV>
<?php
$rs=@mysql_query("select m_type,m_user,m_cname,m_addtime,c_mode,c_info,pro,city,c_established,c_turnover from member where  m_sh=1 and m_mode=1 and id>='$_GET[fromid]' and id<='$_GET[toid]' order by m_type desc,id desc limit ".($thepage-1)*$maxpage.",$maxpage");
while($row=@mysql_fetch_array($rs)){
if($row[m_type]==6){
   $m_url="http://$row[m_user].sandib2b.cn";
   $m_url2="http://$row[m_user].sandib2b.cn/contact.htm";
}else{
   $m_url="/cn/template/$row[m_user]/";
   $m_url2="/cn/template/$row[m_user]/contact.html";
}
?>
<DIV class=zzb4 id=Info6197>
  <DIV class=zzb4-1></DIV>
  <DIV class=zzb4-3>
<DIV class=zzb4-3-1><A href="<?=$m_url?>" target=_blank><?=$row['m_cname']?></A><SPAN 
style="FONT-WEIGHT: normal" class="size10 fontgray"><?=date("Y-m-d",strtotime($row[m_addtime]))?></SPAN></DIV>
<DIV class=zzb4-3-Time>[<?=$row[c_mode]?>]</DIV>
<DIV class=zzb4-3-2><?=mb_substr(strip_tags($row[c_info]),0,80,'utf-8')?></DIV>
<DIV class=zzb4-3-3>
<DIV style="FLOAT: left;font-weight: lighter;"></DIV>
<DIV style="FLOAT: right; COLOR: #999999;font-weight: lighter;">[<?=$row[pro]?>-<?=$row['city']?>]</DIV></DIV></DIV>
<DIV class=zzb5>
  <div class="size11 fontgray"><?=$row[c_established]?></div>
</DIV>
<DIV class=zzb52>
<div style="font-weight: lighter;"><?=$row[c_turnover]?></div>
</DIV>
<DIV class=zzb52>
  <div style="COLOR: #999999;font-weight: lighter;">
  <?php if($row[m_type]==6){?>
<img src="/images/member1.gif"/><?php }?></div>
</DIV>
<DIV class=zzb53>
<div class="ms"><a href="<?=$m_url2?>" target="_blank"><img src="/images/list01.gif" border="0" /></a></div>
</DIV>
<div class="onl"></div>
</DIV>
<?php }
$t_rs=@mysql_query("select count(id) from member where  m_sh=1 and id>='$_GET[fromid]' and id<='$_GET[toid]'");
$totalrecord=@mysql_result($t_rs,0);
@mysql_free_result($t_rs);
$totalpage=ceil($totalrecord/$maxpage);
?>
</div>
<div class="onl"></div>
<!--page-->
<div class="page">
<div class="pageleft">
<ul>
<?php primarypages($thepage,$totalpage,$maxpage,7,$_GET[fromid],$_GET[toid]);?>
</ul>
</div>
<div class="pageright">
<form name="pageform" method="post" action="" onSubmit="return onCheckPage()"> 
共<?=$totalpage?>页　到
<input type="text" name="page" class="input-txt" size="5" maxlength="5">页
<input type="submit" value="确定" class="but">
</form>
<script language="javascript"> 
function onCheckPage(){
var page = parseInt(document.pageform.page.value); 
if(isNaN(page)){
alert("请输入数字(1,<?=$totalpage?>)");
return false; 
}
if(page<=0){
page =1; 
}
if(page ><?=$totalpage?>){
page=<?=$totalpage?>;
}
if(page>1){
document.pageform.action = "/company/from<?=$_GET[fromid]?>-to<?=$_GET[toid]?>-pid"+page+".html"; 
}else{
document.pageform.action = "/company/from<?=$_GET[fromid]?>-to<?=$_GET[toid]?>-pid1.html"; 
}
return true;
}
</script>
  </div>
<div class="onl"></div>
</div>
</div>
<div class="rightmain">
  <div class="right side">
  <div class="title b">黄金展位供应商</div>
  <div style="width:180px;" align="center">
	<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 160x600, 创建于 11-3-13 */
google_ad_slot = "6251201312";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
	</div>
  <div style="width:180px; margin-top:20px;" align="center"><script type="text/javascript"> /*160*600，创建于2010-8-4*/ var cpro_id = 'u136291';</script>
<script type="text/javascript" src="http://cpro.baidu.com/cpro/ui/c.js"></script>
</div>
  </div>
</div>

<div class="onl"></div>
</div>
<div class="w960 topside20 downside20 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>

<?php include("../inc/foot.php");?>
</BODY>
</HTML>

<script language="javascript">
function $(id){
return document.getElementById(id);
}
function listfoot(){
if($("subject").value==""){
alert("请输入您要搜索的关键字");
$("subject").focus();
return false;
}
}
</script>
